package com.hgkj.cloud.base.service.impl;

import com.hgkj.cloud.base.dao.SubDeviceInfoMapper;
import com.hgkj.cloud.base.domain.SubDeviceInfo;
import com.hgkj.cloud.base.service.SubDeviceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SubDeviceInfoServiceImpl implements SubDeviceInfoService {

    @Autowired
    private SubDeviceInfoMapper subDeviceInfoMapper;

    @Override
    public int insertSelective(SubDeviceInfo record) {
        return subDeviceInfoMapper.insertSelective(record);
    }

    @Override
    public List<SubDeviceInfo> getSubDeviceByFatherDevInfoId(Long fatherDevInfoId) {
        return subDeviceInfoMapper.getSubDeviceByFatherDevInfoId(fatherDevInfoId);
    }

    @Override
    public int disableSubDeviceByFatherDevInfoId(Long fatherDevInfoId) {
        return subDeviceInfoMapper.disableSubDeviceByFatherDevInfoId(fatherDevInfoId);
    }
}
